<script src="RGraph.common.core.js"></script> <script src="RGraph.common.dynamic.js"></script> <script src="RGraph.common.tooltips.js"></script> <script src="RGraph.hbar.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="350" height="176"> [No canvas support] </canvas>This is the code that generates the chart:
<script> new RGraph.HBar({ id: 'cvs', data: [215, 175], options: { labels: ['Chrome 18', 'Chrome 19'], colors: ['#3266CC'], title: 'SunSpider score', titleXaxis: 'milliseconds (less is better)', titleXaxisY: 155, backgroundGridHlines: false, backgroundGridBorder: false, backgroundGridAutofitNumvlines: 4, gutterBottom: 55, vmargin: 8, gutterTop: 35, gutterLeft: 85, scaleZerostart: true, tooltips: ['<b>Chrome 18</b>','<b>Chrome 19</b><br /><a href="http://www.google.com">Learn more...</a>'] } }).draw(); </script>